import { WeaTools } from 'ecCom';


export const getCenterInfo = params => WeaTools.callApi('/api/odoc/odocCenter/getCenterInfo', 'POST', params);

// 按公文种类分类
export const getCountByOdocType = params => WeaTools.callApi('/api/odoc/odocCenter/getCountByOdocType', 'POST', params);

// 按主题分类
export const getCountByTopicType = params => WeaTools.callApi('/api/odoc/odocCenter/getCountByTopicType', 'POST', params);

// 搜索条件
export const getSearchData = params => WeaTools.callApi('/api/odoc/odocCenter/getSearchData', 'POST', params);

// 公文库
export const odocLibrary = params => WeaTools.callApi('/api/odoc/odocCenter/odocLibrary', 'POST', params);

// 待办公文
export const odocTodolist = params => WeaTools.callApi('/api/odoc/odocCenter/odocTodolist', 'POST', params);

// 待办Tab页统计
export const getTodoCount = params => WeaTools.callApi('/api/odoc/odocTodoList/getTodoCount', 'POST', params);

// 公文可创建列表树
export const createOfficalList = params => WeaTools.callApi('/api/odoc/odocCenter/createOfficalList', 'POST', params);

// 公文创建计数
export const addWorkflowUseCount = params => WeaTools.callApi('/workflow/request/AddWorkflowUseCount.jsp', 'POST', params);
